Optimal. Leaf size=77 \[ \frac {(b d-a e) (B d-A e) (d+e x)^5}{5 e^3}-\frac {(2 b B d-A b e-a B e) (d+e x)^6}{6 e^3}+\frac {b B (d+e x)^7}{7 e^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {78}
\begin {gather*} -\frac {(d+e x)^6 (-a B e-A b e+2 b B d)}{6 e^3}+\frac {(d+e x)^5 (b d-a e) (B d-A e)}{5 e^3}+\frac {b B (d+e x)^7}{7 e^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rubi steps
\begin {align*} \int (a+b x) (A+B x) (d+e x)^4 \, dx &=\int \left (\frac {(-b d+a e) (-B d+A e) (d+e x)^4}{e^2}+\frac {(-2 b B d+A b e+a B e) (d+e x)^5}{e^2}+\frac {b B (d+e x)^6}{e^2}\right ) \, dx\\ &=\frac {(b d-a e) (B d-A e) (d+e x)^5}{5 e^3}-\frac {(2 b B d-A b e-a B e) (d+e x)^6}{6 e^3}+\frac {b B (d+e x)^7}{7 e^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(172\) vs. \(2(77)=154\).
time = 0.05, size = 172, normalized size = 2.23 \begin {gather*} a A d^4 x+\frac {1}{2} d^3 (A b d+a B d+4 a A e) x^2+\frac {1}{3} d^2 (2 a e (2 B d+3 A e)+b d (B d+4 A e)) x^3+\frac {1}{2} d e (a e (3 B d+2 A e)+b d (2 B d+3 A e)) x^4+\frac {1}{5} e^2 (a e (4 B d+A e)+2 b d (3 B d+2 A e)) x^5+\frac {1}{6} e^3 (4 b B d+A b e+a B e) x^6+\frac {1}{7} b B e^4 x^7 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(175\) vs.
\(2(71)=142\).
time = 0.07, size = 176, normalized size = 2.29
method | result | size |
default | \(\frac {B b \,e^{4} x^{7}}{7}+\frac {\left (\left (A b +B a \right ) e^{4}+4 B b d \,e^{3}\right ) x^{6}}{6}+\frac {\left (A a \,e^{4}+4 \left (A b +B a \right ) d \,e^{3}+6 B b \,d^{2} e^{2}\right ) x^{5}}{5}+\frac {\left (4 A a d \,e^{3}+6 \left (A b +B a \right ) d^{2} e^{2}+4 B b \,d^{3} e \right ) x^{4}}{4}+\frac {\left (6 A a \,d^{2} e^{2}+4 \left (A b +B a \right ) d^{3} e +B b \,d^{4}\right ) x^{3}}{3}+\frac {\left (4 A a \,d^{3} e +\left (A b +B a \right ) d^{4}\right ) x^{2}}{2}+A a \,d^{4} x\) | \(176\) |
norman | \(\frac {B b \,e^{4} x^{7}}{7}+\left (\frac {1}{6} A b \,e^{4}+\frac {1}{6} B a \,e^{4}+\frac {2}{3} B b d \,e^{3}\right ) x^{6}+\left (\frac {1}{5} A a \,e^{4}+\frac {4}{5} A b d \,e^{3}+\frac {4}{5} B a d \,e^{3}+\frac {6}{5} B b \,d^{2} e^{2}\right ) x^{5}+\left (A a d \,e^{3}+\frac {3}{2} A b \,d^{2} e^{2}+\frac {3}{2} B a \,d^{2} e^{2}+B b \,d^{3} e \right ) x^{4}+\left (2 A a \,d^{2} e^{2}+\frac {4}{3} A b \,d^{3} e +\frac {4}{3} B a \,d^{3} e +\frac {1}{3} B b \,d^{4}\right ) x^{3}+\left (2 A a \,d^{3} e +\frac {1}{2} A b \,d^{4}+\frac {1}{2} B a \,d^{4}\right ) x^{2}+A a \,d^{4} x\) | \(188\) |
gosper | \(\frac {1}{7} B b \,e^{4} x^{7}+\frac {1}{6} x^{6} A b \,e^{4}+\frac {1}{6} x^{6} B a \,e^{4}+\frac {2}{3} x^{6} B b d \,e^{3}+\frac {1}{5} x^{5} A a \,e^{4}+\frac {4}{5} x^{5} A b d \,e^{3}+\frac {4}{5} x^{5} B a d \,e^{3}+\frac {6}{5} x^{5} B b \,d^{2} e^{2}+x^{4} A a d \,e^{3}+\frac {3}{2} x^{4} A b \,d^{2} e^{2}+\frac {3}{2} x^{4} B a \,d^{2} e^{2}+x^{4} B b \,d^{3} e +2 x^{3} A a \,d^{2} e^{2}+\frac {4}{3} x^{3} A b \,d^{3} e +\frac {4}{3} x^{3} B a \,d^{3} e +\frac {1}{3} x^{3} B b \,d^{4}+2 x^{2} A a \,d^{3} e +\frac {1}{2} x^{2} A b \,d^{4}+\frac {1}{2} x^{2} B a \,d^{4}+A a \,d^{4} x\) | \(217\) |
risch | \(\frac {1}{7} B b \,e^{4} x^{7}+\frac {1}{6} x^{6} A b \,e^{4}+\frac {1}{6} x^{6} B a \,e^{4}+\frac {2}{3} x^{6} B b d \,e^{3}+\frac {1}{5} x^{5} A a \,e^{4}+\frac {4}{5} x^{5} A b d \,e^{3}+\frac {4}{5} x^{5} B a d \,e^{3}+\frac {6}{5} x^{5} B b \,d^{2} e^{2}+x^{4} A a d \,e^{3}+\frac {3}{2} x^{4} A b \,d^{2} e^{2}+\frac {3}{2} x^{4} B a \,d^{2} e^{2}+x^{4} B b \,d^{3} e +2 x^{3} A a \,d^{2} e^{2}+\frac {4}{3} x^{3} A b \,d^{3} e +\frac {4}{3} x^{3} B a \,d^{3} e +\frac {1}{3} x^{3} B b \,d^{4}+2 x^{2} A a \,d^{3} e +\frac {1}{2} x^{2} A b \,d^{4}+\frac {1}{2} x^{2} B a \,d^{4}+A a \,d^{4} x\) | \(217\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 175 vs.
\(2 (75) = 150\).
time = 0.30, size = 175, normalized size = 2.27 \begin {gather*} \frac {1}{7} \, B b x^{7} e^{4} + A a d^{4} x + \frac {1}{6} \, {\left (4 \, B b d e^{3} + B a e^{4} + A b e^{4}\right )} x^{6} + \frac {1}{5} \, {\left (6 \, B b d^{2} e^{2} + A a e^{4} + 4 \, {\left (B a e^{3} + A b e^{3}\right )} d\right )} x^{5} + \frac {1}{2} \, {\left (2 \, B b d^{3} e + 2 \, A a d e^{3} + 3 \, {\left (B a e^{2} + A b e^{2}\right )} d^{2}\right )} x^{4} + \frac {1}{3} \, {\left (B b d^{4} + 6 \, A a d^{2} e^{2} + 4 \, {\left (B a e + A b e\right )} d^{3}\right )} x^{3} + \frac {1}{2} \, {\left (4 \, A a d^{3} e + {\left (B a + A b\right )} d^{4}\right )} x^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 178 vs.
\(2 (75) = 150\).
time = 0.49, size = 178, normalized size = 2.31 \begin {gather*} \frac {1}{3} \, B b d^{4} x^{3} + A a d^{4} x + \frac {1}{2} \, {\left (B a + A b\right )} d^{4} x^{2} + \frac {1}{210} \, {\left (30 \, B b x^{7} + 42 \, A a x^{5} + 35 \, {\left (B a + A b\right )} x^{6}\right )} e^{4} + \frac {1}{15} \, {\left (10 \, B b d x^{6} + 15 \, A a d x^{4} + 12 \, {\left (B a + A b\right )} d x^{5}\right )} e^{3} + \frac {1}{10} \, {\left (12 \, B b d^{2} x^{5} + 20 \, A a d^{2} x^{3} + 15 \, {\left (B a + A b\right )} d^{2} x^{4}\right )} e^{2} + \frac {1}{3} \, {\left (3 \, B b d^{3} x^{4} + 6 \, A a d^{3} x^{2} + 4 \, {\left (B a + A b\right )} d^{3} x^{3}\right )} e \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 226 vs.
\(2 (71) = 142\).
time = 0.03, size = 226, normalized size = 2.94 \begin {gather*} A a d^{4} x + \frac {B b e^{4} x^{7}}{7} + x^{6} \left (\frac {A b e^{4}}{6} + \frac {B a e^{4}}{6} + \frac {2 B b d e^{3}}{3}\right ) + x^{5} \left (\frac {A a e^{4}}{5} + \frac {4 A b d e^{3}}{5} + \frac {4 B a d e^{3}}{5} + \frac {6 B b d^{2} e^{2}}{5}\right ) + x^{4} \left (A a d e^{3} + \frac {3 A b d^{2} e^{2}}{2} + \frac {3 B a d^{2} e^{2}}{2} + B b d^{3} e\right ) + x^{3} \cdot \left (2 A a d^{2} e^{2} + \frac {4 A b d^{3} e}{3} + \frac {4 B a d^{3} e}{3} + \frac {B b d^{4}}{3}\right ) + x^{2} \cdot \left (2 A a d^{3} e + \frac {A b d^{4}}{2} + \frac {B a d^{4}}{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 208 vs.
\(2 (75) = 150\).
time = 1.45, size = 208, normalized size = 2.70 \begin {gather*} \frac {1}{7} \, B b x^{7} e^{4} + \frac {2}{3} \, B b d x^{6} e^{3} + \frac {6}{5} \, B b d^{2} x^{5} e^{2} + B b d^{3} x^{4} e + \frac {1}{3} \, B b d^{4} x^{3} + \frac {1}{6} \, B a x^{6} e^{4} + \frac {1}{6} \, A b x^{6} e^{4} + \frac {4}{5} \, B a d x^{5} e^{3} + \frac {4}{5} \, A b d x^{5} e^{3} + \frac {3}{2} \, B a d^{2} x^{4} e^{2} + \frac {3}{2} \, A b d^{2} x^{4} e^{2} + \frac {4}{3} \, B a d^{3} x^{3} e + \frac {4}{3} \, A b d^{3} x^{3} e + \frac {1}{2} \, B a d^{4} x^{2} + \frac {1}{2} \, A b d^{4} x^{2} + \frac {1}{5} \, A a x^{5} e^{4} + A a d x^{4} e^{3} + 2 \, A a d^{2} x^{3} e^{2} + 2 \, A a d^{3} x^{2} e + A a d^{4} x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.09, size = 182, normalized size = 2.36 \begin {gather*} x^3\,\left (\frac {B\,b\,d^4}{3}+\frac {4\,A\,b\,d^3\,e}{3}+\frac {4\,B\,a\,d^3\,e}{3}+2\,A\,a\,d^2\,e^2\right )+x^5\,\left (\frac {A\,a\,e^4}{5}+\frac {4\,A\,b\,d\,e^3}{5}+\frac {4\,B\,a\,d\,e^3}{5}+\frac {6\,B\,b\,d^2\,e^2}{5}\right )+x^2\,\left (\frac {A\,b\,d^4}{2}+\frac {B\,a\,d^4}{2}+2\,A\,a\,d^3\,e\right )+x^6\,\left (\frac {A\,b\,e^4}{6}+\frac {B\,a\,e^4}{6}+\frac {2\,B\,b\,d\,e^3}{3}\right )+A\,a\,d^4\,x+\frac {d\,e\,x^4\,\left (2\,A\,a\,e^2+2\,B\,b\,d^2+3\,A\,b\,d\,e+3\,B\,a\,d\,e\right )}{2}+\frac {B\,b\,e^4\,x^7}{7} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________